package com.bwsoft.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * 用户类
 * 
 * @author Cui Bowen<br>
 *         2015年5月18日16:22:26
 */
public class User implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 用户编号
	 */
	private Integer userID;
	/**
	 * 用户姓名
	 */
	private String name;
	/**
	 * 登陆账号
	 */
	private String account;
	/**
	 * 登陆密码
	 */
	private String password;
	/**
	 * 账号状态<br>
	 * 1：正常，注册默认<br>
	 * 2：注销
	 */
	private Integer status;
	/**
	 * 创建者编号
	 */
	private Integer createrID;
	private String description;
	private Date addTime;
	private String userGroupNames;

	private Set<Fun> funs;
	private Set<UserGroup> userGroups;

	public Integer getUserID() {
		return userID;
	}

	public void setUserID(Integer userID) {
		this.userID = userID;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getCreaterID() {
		return createrID;
	}

	public void setCreaterID(Integer createrID) {
		this.createrID = createrID;
	}


	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Set<Fun> getFuns() {
		return funs;
	}

	public void setFuns(Set<Fun> funs) {
		this.funs = funs;
	}

	public Set<UserGroup> getUserGroups() {
		return userGroups;
	}

	public void setUserGroups(Set<UserGroup> userGroups) {
		this.userGroups = userGroups;
	}

	public String getUserGroupNames() {
		return userGroupNames;
	}

	public void setUserGroupNames(String userGroupNames) {
		this.userGroupNames = userGroupNames;
	}

	public User(String name, String account, String password, Integer status, Integer createrID, String description, Date addTime) {
		super();
		this.name = name;
		this.account = account;
		this.password = password;
		this.status = status;
		this.createrID = createrID;
		this.description = description;
		this.addTime = addTime;
	}
	public User(){}
	
	

}
